package com.example.wanandroid.service;

import com.example.wanandroid.pojo.Answer;

import java.util.HashMap;
import java.util.List;

/**
 * @Desc 回答
 * @Date 2020/4/18 14:15
 */
public interface AnswerService {

    int deleteByPrimaryKey(Long id);

    int insert(Answer record);

    Answer selectByPrimaryKey(Long id);


    int updateByPrimaryKey(Answer record);

    List<HashMap<String,Object>> listMyAnswers(Long userid, int start, int pageSize);

    List<HashMap<String,Object>> listAnswersByQuestionId(Long questionId, int start, int pageSize);
}
